// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 

package com.yztag;


import java.io.IOException;
import java.util.Iterator;
import java.util.List;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

import org.apache.log4j.Logger;


// Referenced classes of package com.lbs.cp.taglib:
//            ViewTableTag, Formatter

public class JqGridHead extends TagSupport {
    protected String headvalue;//列表头，字段数组
    private static Logger log = Logger.getLogger(JqGridHead.class);

    public int doStartTag()
            throws JspException {
        StringBuffer stringbuffer = new StringBuffer("");
        stringbuffer.append("colNames:[" + headvalue + "],");
        stringbuffer.append("colModel:[");
        JspWriter jw = this.pageContext.getOut();
        try {
            jw.write(stringbuffer.toString());
        } catch (IOException e) {
            // TODO Auto-generated catch block
        	log.error("", e);
        }
        return EVAL_BODY_INCLUDE;
    }

    public int doEndTag() throws JspException {
        StringBuffer stringbuffer = new StringBuffer("");
        stringbuffer.append("],");
        JspWriter jw = this.pageContext.getOut();
        try {
            jw.write(stringbuffer.toString());
        } catch (IOException e) {
            // TODO Auto-generated catch block
        	log.error("", e);
        }

        return EVAL_PAGE;

    }

    public void setHeadvalue(String headvalue) {
        this.headvalue = headvalue;
    }


}
